<?php if($category ): ?>
<?php if( CategoryPeer::retrieveByPK($category->getParentId())): ?>
<?php echo link_to(image_tag('up_to_parent.png'
                    , array('class' => ''))
                , 'category/list?filter=1&filters[parent_id]=' . CategoryPeer::retrieveByPK($category->getParentId())->getParentId()
                , array('class' => '')); ?>
<?php endif; ?>
<?php endif; ?>
